import request from '@/utils/request';
import { stringify } from 'qs';
import { toFormData } from '@/utils/utils.jsx';

//获取列表分页
export async function queryPageList(params) {
  return request(`/new-wms/stockrefundlogisticsreg/page?${stringify(params)}`);
}

//新增
export async function saveRefundlogistics(params) {
  return request(`/new-wms/stockrefundlogisticsreg/save`, {
    method: 'post',
    data: params,
  });
}

//修改备注
export async function saveRefundlogisticsNote(params) {
  return request(`/new-wms/stockrefundlogisticsreg/update`, {
    method: 'post',
    // body: toFormData(params),
    data: params,
  });
}

// 创建人列表
export async function queryUserList(params) {
  return request(`/blade-user/listLikeAccountOrUsername?${stringify(params)}`);
}

//创建导出任务
export async function createExportTask(params) {
	return request(`/blade-log/taskInfo/createExportTask`, {
		method: "post",
		data: params
	});
}

//查询导出记录
export async function queryExportTaskRate(params) {
	return request(`/blade-log/taskInfo/getExportTaskRate?${stringify(params)}`);
}

//下载excel
export async function downLoadFileOp(params) {
    return request(`/blade-log/taskInfo/downLoadFile?${stringify(params)}`);
  }